﻿using System.Linq;
using SalesSys.BLL;
using SalesSys.DAL.Models;

namespace SalesSys.Site.Controllers.Api
{
    public class DistrictController : BaseApiController
    {
        private DistrictBLL districtBLL = new DistrictBLL();

        /// <summary>
        /// 地区列表
        /// </summary>
        /// <returns>地区（数组）</returns>
        public District[] Get()
        {
          return  districtBLL.GetDistricts().ToArray();
        }
    }
}
